package xyz.thoughtset.viewer.common.connector.entity.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Linker {
    protected String id;
    protected String driverClassName;
    protected String jarFilePath;
    protected Map otherSettings;
    protected Boolean nativeDriver = false;
    protected Boolean reactive = false;
    protected String linkerType;


    public Linker(String title, String driverClassName, Map otherSettings, Boolean reactive,String linkerType) {
        this.id = title;
        this.driverClassName = driverClassName;
        this.otherSettings = otherSettings;
        this.nativeDriver = Boolean.TRUE;
        this.reactive = reactive;
        this.linkerType = linkerType;
    }

    public Linker(String title, String driverClassName,String linkerType) {
        this(title, driverClassName, null, false,linkerType);
    }

}
